//
//  TYZBaseViewModel.h
//  DriveSchoolCoach
//
//  Created by TangBin on 2019/7/4.
//  Copyright © 2019 TangBin. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface TYZBaseViewModel : NSObject
/**
 navItem.title
 */
@property (nonatomic ,copy) NSString *title;

@property (nonatomic, strong, readonly) RACSubject *errors;

@property (nonatomic, strong, nullable) NSMutableArray *dataList; ///< 用到列表的时候需要

@property (nonatomic, assign) NSInteger pageId; ///< 分页需要 默认1
@property (nonatomic, assign) NSInteger pageSize; ///< 默认10

- (void)initialize;

/**
 保存记录
 */
//- (void)appStudentOperatingSystem;

/// 表示初始化数据 -- 需要主动调用
- (void)setupData;

/**
 同一方法，请求接口后发送最终的结果
 
 @param rspObj rspObj description
 @param completion completion description
 */
- (void)sendResponseObject:(id)rspObj completion:(RequestCompletionBlock)completion;

@end

NS_ASSUME_NONNULL_END
